package com.xbongbong.pro.enums.errorcodes;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 评分错误枚举
 * @author haibin
 */
@Getter
public enum ScoreErrorCodeEnum implements ErrorCode {
    API_ERROR_1200001(1200001,"enum.errorCode.msg.api_error_1200001"),
    API_ERROR_1200002(1200002,"enum.errorCode.msg.api_error_1200002"),
    API_ERROR_1200003(1200003,"enum.errorCode.msg.api_error_1200003"),
    API_ERROR_1200004(1200004,"enum.errorCode.msg.api_error_1200004"),
    API_ERROR_1200005(1200005,"enum.errorCode.msg.api_error_1200005"),
    API_ERROR_1200006(1200006,"enum.errorCode.msg.api_error_1200006"),
    API_ERROR_1200007(1200007,"enum.errorCode.msg.api_error_1200007"),
    API_ERROR_1200008(1200008,"enum.errorCode.msg.api_error_1200008"),
    API_ERROR_1200009(1200009,"enum.errorCode.msg.api_error_1200009"),
    API_ERROR_1200010(1200010,"enum.errorCode.msg.api_error_1200010"),
    API_ERROR_1200011(1200011,"enum.errorCode.msg.api_error_1200011"),
    API_ERROR_1200012(1200012,"enum.errorCode.msg.api_error_1200012"),
    API_ERROR_1200013(1200013,"enum.errorCode.msg.api_error_1200013"),
    API_ERROR_1200014(1200014,"enum.errorCode.msg.api_error_1200014"),
    API_ERROR_1200015(1200015,"enum.errorCode.msg.api_error_1200015"),
    API_ERROR_1200016(1200016,"enum.errorCode.msg.api_error_1200016"),
    API_ERROR_1200017(1200017,"enum.errorCode.msg.api_error_1200017"),
    API_ERROR_1200018(1200018,"enum.errorCode.msg.api_error_1200018"),
    API_ERROR_1200019(1200019,"enum.errorCode.msg.api_error_1200019"),
    API_ERROR_1200020(1200020,"enum.errorCode.msg.api_error_1200020"),
    API_ERROR_1200021(1200021,"enum.errorCode.msg.api_error_1200021"),
    API_ERROR_1200022(1200022,"enum.errorCode.msg.api_error_1200022")
    ;

    /**
     * 错误码
     */
    private final int code;
    /**
     * 错误描述
     */
    private final String msg;

    ScoreErrorCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;

    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return I18nMessageUtil.getMessage(msg);
    }
}
